package gcontent.filter;

import gcontent.entities.Content;

import java.util.HashMap;
import java.util.Vector;

public class FilterContentChain extends FilterChain {
		
	public static boolean passFilters(HashMap<String, Vector<Filter>> filters, Content content, boolean def_action)
	{		
		String format;
		
		if(filters.get(content.getFormat()) == null)
			format = Content.DEF_TYPE_FORMAT;
		else
			format = content.getFormat();
			
		return passFilters(filters, content, format, def_action);
	}
}
